//
// File:	GuiMenuCreateGame.hpp
// Author:	Thomas TISSOT-DUPONT
// Login:	<thomas.tissotdupont@free.fr>
//
// Created:	29/04/2010 at 20:24:14
// Purpose:	
//
#ifndef GUIMENUCREATEGAME_HPP
#define GUIMENUCREATEGAME_HPP

#include "GuiPanel.hpp"

class GuiMenuCreateGame : public GuiPanel
{
	Q_OBJECT

public:
										GuiMenuCreateGame(QWidget *pParent = NULL);
										~GuiMenuCreateGame();
public slots:
	void								onBackClicked();
	void								onAcceptClicked();
	void								onGameRuleCurrentIndexChanged(const QString &);
	void								onLevelCurrentIndexChanged(const QString &);

public:
	enum Buttons
	{
		ButtonBack,
		ButtonAccept
	};
	enum Labels
	{
		LabelGameRule,
		LabelLevel
	};
	enum ComboBoxes
	{
		ComboBoxGameRule,
		ComboBoxLevel,
	};
	enum Image
	{
		ImageCurrentLevel
	};

protected:
	void								showEvent(QShowEvent *e);

private:
	QMap<Labels, GuiLabel *>			_menuLabels;
	QMap<ComboBoxes, GuiComboBox *>		_menuComboBoxes;
	QMap<Image, GuiImage *>				_menuImages;
	QMap<Buttons, GuiPushButton *>		_menuButtons;
};

#endif //!GUIMENUCREATEGAME_HPP
